//
//  SXTNavigationViewController.m
//  SXT
//
//  Created by gaochar on 2017/3/15.
//  Copyright © 2017年 so. All rights reserved.
//

#import "SXTNavigationViewController.h"

@interface SXTNavigationViewController ()

@end

@implementation SXTNavigationViewController

// 保证只对nac进行一次设置，节约性能
+ (void)initialize {
    
    // 获取UINavigationBar
    UINavigationBar *navBar = [UINavigationBar appearance];
    
    // 设置navBar的背景图片
    [navBar setBackgroundImage:[UIImage imageNamed:@"nav_backImage"] forBarMetrics:(UIBarMetricsDefault)];
    
    // 设置导航栏字体样式
    [navBar setTitleTextAttributes:@{
                                     NSForegroundColorAttributeName : [UIColor blackColor],
                                     NSFontAttributeName : [UIFont boldSystemFontOfSize:20.0f]
                                     }];
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
